﻿@model SitemapModel
@using Nop.Web.Models.Common;
@{
    Layout = "~/Views/Shared/_ColumnsOne.cshtml";

    //title
    Html.AddTitleParts(T("PageTitle.Sitemap").Text);
}

<div class="container">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default form-panel">
                <div class="panel-heading">
                    <h3>@T("Sitemap")</h3>
                </div>
                <div class="panel-body">
                    <div class="entity">
                        <div class="row">
                                <div class="col-md-3"><a href="@Url.RouteUrl("HomePage")">@T("HomePage")</a></div>
                                <div class="col-md-3"><a href="@Url.RouteUrl("ProductSearch")">@T("Search")</a></div>
                                @if (Model.NewsEnabled)
                                {
                                    <div class="col-md-3"><a href="@Url.RouteUrl("NewsArchive")">@T("News")</a></div>
                                }
                                @if (Model.BlogEnabled)
                                {
                                    <div class="col-md-3"><a href="@Url.RouteUrl("Blog")">@T("Blog")</a></div>
                                }
                                @if (Model.ForumEnabled)
                                {
                                    <div class="col-md-3"><a href="@Url.RouteUrl("Boards")">@T("Forum.Forums")</a></div>
                                }
                                <div class="col-md-3"><a href="@Url.RouteUrl("ContactUs")">@T("ContactUs")</a></div>
                                <div class="col-md-3"><a href="@Url.RouteUrl("CustomerInfo")">@T("Account.MyAccount")</a></div>
                                @if (Model.Topics.Count > 0)
                                {
                                    foreach (var item in Model.Topics)
                                    {
                                        <div class="col-md-3"><a href="@Url.RouteUrl("Topic", new {Sename = Html.GetTopicSeName(item.SystemName)})">@item.Title</a></div>
                                    }
                                }
                        </div>
                    </div>
                    @if (Model.Categories.Count > 0)
                    {
                        <div class="entity">
                            <div class="entity-title">
                                <h2>@T("Sitemap.Categories")</h2>
                            </div>
                            <div class="row">
                                    @foreach (var category in Model.Categories)
                                    {
                                        <div class="col-md-3"><a href="@Url.RouteUrl("Category", new { SeName = category.SeName })">@category.Name</a></div>
                                    }
                            </div>
                        </div>
                    }
                    @if (Model.Manufacturers.Count > 0)
                    {
                        <div class="entity">
                            <div class="entity-title">
                                <h2>@T("Sitemap.Manufacturers")</h2>
                            </div>
                            <div class="row">
                                    @foreach (var manufacturer in Model.Manufacturers)
                                    {
                                        <div class="col-md-3"><a href="@Url.RouteUrl("Manufacturer", new { SeName = manufacturer.SeName })">@manufacturer.Name</a></div>
                                    }
                            </div>
                        </div>
                    }
                    @if (Model.Products.Count > 0)
                    {
                        <div class="entity">
                            <div class="entity-title">
                                <h2>@T("Sitemap.Products")</h2>
                            </div>
                            <div class="row">
                                    @foreach (var product in Model.Products)
                                    {
                                        <div class="col-md-3"><a href="@Url.RouteUrl("Product", new { SeName = product.SeName })">@product.Name</a></div>
                                    }
                            </div>
                        </div>
                    }
                </div>
            </div>
        </div>
    </div>
</div>